<?php 
class ControllerPageStaff extends Controller{
		public function index(){
			if (!$this->user->isLogged()) {
	  		$this->redirect($this->url->link('account/login', '', 'SSL'));
    		}
			
			$this->data['noneentrust']=array(
				'href' => $this->url->link('staff/none_entrust')
			);
			
			$this->data['entrust']=array(
				'href' => $this->url->link('staff/entrust')
			);
		
			$this->document->setTitle($this->config->get('config_title'));
			$this->document->setDescription($this->config->get('config_meta_description'));

			$this->data['heading_title'] = $this->config->get('config_title');

				
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/page/staff.tpl')) 		            {
				$this->template = $this->config->get('config_template') . '/template/page/staff.tpl';
			} else {
				$this->template = 'default/template/page/staff.tpl';
			}
			
			$this->children = array(
				'common/footer',
				'common/header'
			);
											
			$this->response->setOutput($this->render());
		}
	}
?>